807035888106fe9d19facab1ae7a1ec227ff74e5,Server/src/main/java/org/xdi/oxauth/session/ws/rs/EndSessionRestWebServiceImpl.java,EndSessionRestWebServiceImpl,auditLogging,#HttpServletRequest#AuthorizationGrant#,295
Before Change
oAuth2AuditLog.setSuccess(true);
oAuth2AuditLog.setClientId(authorizationGrant.getClientId());
oAuth2AuditLog.setScope(StringUtils.join(authorizationGrant.getScopes(), " "));
oAuth2AuditLog.setUsername(authorizationGrant.getUserId());
applicationAuditLogger.sendMessage(oAuth2AuditLog);
}
}
After Change
OAuth2AuditLog oAuth2AuditLog = new OAuth2AuditLog(ServerUtil.getIpAddress(request), Action.SESSION_DESTROYED);
oAuth2AuditLog.setSuccess(true);
if (authorizationGrant != null) {
oAuth2AuditLog.setClientId(authorizationGrant.getClientId());
oAuth2AuditLog.setScope(StringUtils.join(authorizationGrant.getScopes(), " "));
oAuth2AuditLog.setUsername(authorizationGrant.getUserId());
} else {
oAuth2AuditLog.setClientId(sessionState.getInvolvedClients().getClientIds(true).toString());
oAuth2AuditLog.setScope(sessionState.getSessionAttributes().get(AuthorizeRequestParam.SCOPE));